package com.newdriver.prac;
//类中方法外静态
public class Prac3 {
    public static void main(String[] args) {
        Test2 test = new Test2();
        Test2 test1 = new Test2();
    }
}
class Test2{
    static {
        //静态代码块 Static修饰  只执行一次
        System.out.println("====");
    }
    public Test2() {
        System.out.println("空参");
    }
    public Test2(int a){
        System.out.println("带参");
    }
}
